{template "header.html"}


<section class="main-content-area">
    <div class="container">
        <!-- bradcame start -->
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                <div class="greentect_bradcame">
                    <ul>
                        <li><a href="{SITE_URL}">首页</a></li>
                        <li>促销活动</li>
                    </ul>
                </div>
            </div>
        </div>
        <!-- bradcame end -->

        <div class="row">
            <div class="deal-of-day-product">
                <!-- deal-of-day-product start -->
                {sql sql='$query_sql' page=1 pagesize=20 urlrule=$urlrule}
                {php $t.thumb=dr_string2array($t.thumb);$price_sku=dr_string2array($t.price_sku);}
                <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" style="margin-bottom: 15px;">
                    <div class="block2-single-item">
                        <div class="product-border">
                            <div class="block2-pro-img">
                                <a href="{$t.url}" target="_blank"><img src="{dr_thumb($t[thumb][file][0], 200, 160)}" alt="{$t.title}" /></a>

                            </div>
                            <div class="block2-pro-text">
                                <h2><a class="product-title" href="{$t.url}">{dr_strcut($t.title, 28)}</a></h2>
                                <div class="rating-box">
                                    {dr_mall_star_level($t.comments)}
                                </div>
                                <div class="product-price">
                                    <span class="regular-price">
                                        ￥{if $price_sku}{dr_sku_price($price_sku, 2, ' ~ ')}{else}{number_format($t.price, 2)}{/if}元
                                    </span>
                                    <label>{dr_strcut($t.pname, 10)}</label>
                                </div>
                                <div class="box-timer">
                                    <div class="timer">
                                        <div data-countdown="{dr_date($t.etime, 'Y/m/d H:i:s')}"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                {/sql}
            </div>
            <!-- deal-of-day-product end -->
        </div>

        <div class="mall-page">
            <ul class="pagination">
                {$pages}
            </ul>
        </div>

    </div>
</section>



{template "footer.html"}